<!--
 * @Author: 赵克强 huohuo625@163.com
 * @Date: 2023-10-17 10:13:29
 * @LastEditors: 赵克强 huohuo625@163.com
 * @LastEditTime: 2024-04-23 16:47:02
 * @FilePath: \hy-ui\src\views\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="appIndex">
    <systemIndex v-if="userType ==='sys_user'"/>
     <forntIndex v-else/>
  </div>
</template>

<script>
import systemIndex from './systemIndex'
import forntIndex from './forntIndex'
import { mapGetters } from "vuex";


export default {
  name: 'Index',
  components: {
   systemIndex,
   forntIndex
  },
  data() {
    return {
     
    }
  },
  methods: {
   
  },
    computed: {
    ...mapGetters(["sidebar", "avatar", "device"]),
    userType: {
      get() {
        return this.$store.state.user.userType;
      },
    },

  },
}
</script>

<style lang="scss" scoped>

</style>
